﻿@{
    ViewBag.Title = "Academics";
    Layout = "~/Views/Shared/_LayoutResume.cshtml";
}
@section tabs{
    <div id="topimagePan"><img src="~/Images/blank.gif" alt="" /></div>
	<ul>
		<li><a href="/User/Home">Home</a></li>
		<li><a href="/Home/AboutUs">About Us</a></li>
		<li><a href="/Home/Gallery">Gallery</a></li>
        <li><a href="/Resume/ResumeManagement">Resume</a></li>
        <li><a href="/Home/ContactUs">Contact Us</a></li>
        <li><a href="/Account/Logout">Logout</a></li>
       
  </ul>
}
@section ResumeManagement{
    <div id="rightform3Pan">
	        <h2>Resume Management</h2>
          <ul>
           	<li><a href="/Resume/PersonalInformation">Personal Information</a></li>
		    <li><a href="/Resume/Academics">Academics</a></li>
		    <li><a href="/Resume/Experiences">Experiences</a></li>
		    <li><a href="/Resume/Projects">Projects</a></li>
		    <li><a href="/Resume/Languages">Languages</a></li>
            <li><a href="/Resume/Skills">Skills</a></li>
            <li><a href="/Resume/References">References</a></li>
            <li><a href="/Resume/Honours">Honours and Awards</a></li>
            <li><a href="/Resume/TargetJobs">Target Jobs</a></li>
	</ul>

	</div>
}
@model OnlineJobPortal.Models.Academic
<div id="leftPan">
     <div id="leftblockonePan">
		<h2>Add new <span>Academic Records</span></h2>
        
          @using (Html.BeginForm("UpdateAcademics", "Resume", FormMethod.Post))
          {
             @Html.ValidationSummary(true)
             <br /><br /><br />
              @Html.HiddenFor(model => model.AcademicID)
              @Html.HiddenFor(model => model.UserID)
               <table border="0">
                <tr><td> @Html.LabelFor(model => model.Degree_Level)</td>
                    <td><select name="Degree_Level">

               @if (ViewBag.Degree_Level == null)
               {
                     <option value="none">please select</option>
                    <option value="Matric">Matric</option>
                    <option value="Intermediate">Intermediate</option>
                    <option value="Graduation">Graduation</option>
                    <option value="Masters">Masters</option>
                    <option value="Doctrate(PhD)">Doctrate(PhD)</option>
               }
                @if (ViewBag.Degree_Level != null)
                {
                    if (Model.Degree_Level.Equals("Matric"))
                    {
                        <option value="Matric" selected="selected">Matric</option>
                        <option value="Intermediate">Intermediate</option>
                        <option value="Graduation">Graduation</option>
                        <option value="Masters">Masters</option>
                        <option value="Doctrate(PhD)">Doctrate(PhD)</option>
                    }
                    if (Model.Degree_Level.Equals("Intermediate"))
                    {
                        <option value="Matric" >Matric</option>
                        <option value="Intermediate" selected="selected">Intermediate</option>
                        <option value="Graduation">Graduation</option>
                        <option value="Masters">Masters</option>
                        <option value="Doctrate(PhD)">Doctrate(PhD)</option>
                    }
                    if (Model.Degree_Level.Equals("Graduation"))
                    {
                        <option value="Matric" >Matric</option>
                        <option value="Intermediate">Intermediate</option>
                        <option value="Graduation" selected="selected">Graduation</option>
                        <option value="Masters">Masters</option>
                        <option value="Doctrate(PhD)">Doctrate(PhD)</option>
                    }
                    if (Model.Degree_Level.Equals("Masters"))
                    {
                        <option value="Matric" >Matric</option>
                        <option value="Intermediate">Intermediate</option>
                        <option value="Graduation">Graduation</option>
                        <option value="Masters" selected="selected">Masters</option>
                        <option value="Doctrate(PhD)">Doctrate(PhD)</option>
                    }
                    if (Model.Degree_Level.Equals("Doctrate(PhD)"))
                    {
                        <option value="Matric" >Matric</option>
                        <option value="Intermediate">Intermediate</option>
                        <option value="Graduation">Graduation</option>
                        <option value="Masters">Masters</option>
                        <option value="Doctrate(PhD)"selected="selected">Doctrate(PhD)</option>
                    }
                    if (Model.Degree_Level.Equals("none"))
                    {
                        <option value="Matric" >Matric</option>
                        <option value="Intermediate">Intermediate</option>
                        <option value="Graduation">Graduation</option>
                        <option value="Masters">Masters</option>
                        <option value="Doctrate(PhD)">Doctrate(PhD)</option>
                    }

                }
                 </select></td>
                </tr>
                    <tr><td>@Html.LabelFor(model => model.Degree_Title)</td>
                        <td>@Html.EditorFor(model => model.Degree_Title)</td>
                        <td>@Html.ValidationMessageFor(model => model.Degree_Title)</td></tr>

                   <tr><td> @Html.LabelFor(model => model.Completition_Date)</td>
                        <td>@Html.EditorFor(model => model.Completition_Date)</td>
                        <td>@Html.ValidationMessageFor(model => model.Completition_Date)</td></tr>

                   <tr><td> @Html.LabelFor(model => model.CGPA)</td>
                        <td> @Html.EditorFor(model => model.CGPA)</td>
                        <td> @Html.ValidationMessageFor(model => model.CGPA)</td></tr>

                   <tr><td>  @Html.LabelFor(model => model.Institution)</td>
                        <td> @Html.EditorFor(model => model.Institution)</td>
                        <td> @Html.ValidationMessageFor(model => model.Institution)</td></tr>

                   <tr><td> @Html.LabelFor(model => model.City)</td>
                        <td>  <select name="City">
                @if (ViewBag.City == null)
                {
                    <option value="none">select type</option>
                    <option value="Lahore">Lahore</option>
                    <option value="karachi">karachi</option>
                    <option value="Islamabad">Islamabad</option>
                }
                @if (ViewBag.City != null)
                {
                       if (Model.City.Equals("Lahore"))
                       {
                         <option value="Lahore" selected="selected">Lahore</option>
                         <option value="karachi">karachi</option>
                         <option value="Islamabad">Islamabad</option>
                       }
                       if (Model.City.Equals("karachi"))
                       {
                           <option value="Lahore">Lahore</option>
                         <option value="karachi" selected="selected">karachi</option>
                         <option value="Islamabad">Islamabad</option>
                       }
                       if (Model.City.Equals("Islamabad"))
                       {
                           <option value="Lahore">Lahore</option>
                         <option value="karachi" >karachi</option>
                         <option value="Islamabad" selected="selected">Islamabad</option>
                       }
                       if(Model.City.Equals("none"))
                       {
                            <option value="none">select type</option>
                            <option value="Lahore">Lahore</option>
                            <option value="karachi">karachi</option>
                            <option value="Islamabad">Islamabad</option>
                       }
                }
            
          </select></td></tr>

                    <tr><td>  @Html.LabelFor(model => model.Province)</td>
                        <td> <select name="Province" id="Province">
                @if (ViewBag.Province == null)
                {
                   <option >Select Province</option>
                   <option value="Punjab">Punjab</option>
                   <option value="Sindh">Sindh</option>
                   <option value="Khyber Pakhtunkhwa">Khyber Pakhtunkhwa</option>
                   <option value="Balochistan">Balochistan</option>
                }
                @if (ViewBag.Province != null)
                {
                      if (Model.Province.Equals("Punjab"))
                       {
                         <option value="Punjab" selected="selected">Punjab</option>
                        <option value="Sindh">Sindh</option>
                        <option value="Khyber Pakhtunkhwa">Khyber Pakhtunkhwa</option>
                        <option value="Balochistan">Balochistan</option>
                       }
                       if (Model.Province.Equals("Sindh"))
                       {
                            <option value="Punjab">Punjab</option>
                            <option value="Sindh"selected="selected">Sindh</option>
                            <option value="Khyber Pakhtunkhwa">Khyber Pakhtunkhwa</option>
                            <option value="Balochistan">Balochistan</option>
                       }
                       if (Model.Province.Equals("Khyber Pakhtunkhwa"))
                       {
                           <option value="Punjab">Punjab</option>
                           <option value="Sindh">Sindh</option>
                           <option value="Khyber Pakhtunkhwa" selected="selected">Khyber Pakhtunkhwa</option>
                           <option value="Balochistan">Balochistan</option>
                       }
                       if (Model.Province.Equals("Balochistan"))
                       {
                           <option value="Punjab">Punjab</option>
                           <option value="Sindh">Sindh</option>
                           <option value="Khyber Pakhtunkhwa">Khyber Pakhtunkhwa</option>
                           <option value="Balochistan" selected="selected">Balochistan</option>
                       }
                       if (Model.Province.Equals("none"))
                       {
                           <option >Select Province</option>
                           <option value="Punjab">Punjab</option>
                           <option value="Sindh">Sindh</option>
                           <option value="Khyber Pakhtunkhwa">Khyber Pakhtunkhwa</option>
                           <option value="Balochistan">Balochistan</option>
                       }
                }
            
          </select></td></tr>
                    <tr><td>@Html.LabelFor(model => model.Country)</td>
                        <td><select name="Country">
               @if (ViewBag.Country == null)
               {
                    <option value="none">select type</option>
                    <option value="Pakistan">Pakistan</option>
                    <option value="India">India</option>
                    <option value="America">America</option>
               }
               @if (ViewBag.Country != null)
               {
                   if (Model.Country.Equals("Pakistan"))
                   {
                     <option value="Pakistan" selected="selected">Pakistan</option>
                     <option value="India">India</option>
                     <option value="America">America</option>
                   }
                   if (Model.Country.Equals("India"))
                   {
                       <option value="Pakistan">Pakistan</option>
                     <option value="India" selected="selected">India</option>
                     <option value="America">America</option>
                   }
                    if (Model.Country.Equals("America"))
                   {
                       <option value="Pakistan">Pakistan</option>
                     <option value="India" >India</option>
                     <option value="America" selected="selected">America</option>
                   }
                   if(Model.Country.Equals("none"))
                   {
                        <option value="none">select type</option>
                        <option value="Pakistan">Pakistan</option>
                        <option value="India">India</option>
                        <option value="America">America</option>
                   }
                   
               }
          </select></td></tr>
                     <tr><td>@Html.LabelFor(model => model.Details)</td>
                        <td>@Html.TextAreaFor(model => model.Details)</td></tr>
                  
                        
                   </table>
                     <p>
                         <input type="submit" value="Next" />
                    </p>
    }

    </div>

    </div>
@section Footer{
    <div id="footerPan">
	<ul>
		<li><a href="/Home/Index">Home</a>|</li>
		<li><a href="/Home/AboutUs">About Us</a>|</li>
		<li><a href="/Home/Categories">Categories</a>|</li>
        <li><a href="/Resume/ResumeManagement">Resume</a>|</li>
        <li><a href="/Home/ContactUs">Contact Us</a>|</li>
        <li><a href="/Home/Index">Logout</a></li>
		</ul>
		<p class="copyright">©oportunity. all right reserved.</p>
    </div>
    }